<?php

class LightConnException extends Exception
{
	/**
	 * Erro nativo do banco
	 *
	 * @var string
	 */
	public $error;
	
	public $message;
	
	public $sql;
	
	public function LightConnException($message, $error = null, $code = null, $sql = null)
	{
		$this->error = $error;
		$this->sql = $sql;
		$this->message = $message;
		parent::__construct($message . "\n Erro nativo: " . $this->error . " \n SQL: " . $this->sql, $code);
	}
}

?>